import { createApp } from "vue";
// @ts-ignore
import App from "./App.vue"
import install from "@/packages/install";
import router from "@/packages/router";

import { setupProdMockServer } from "__ROOT__/mock/mockProdServer.ts";

if (process.env.NODE_ENV === "production") {
  setupProdMockServer();
}

createApp(App)
  .use(install, {
    menus: [],
    getViews: () => {
      return import.meta.glob("@/app/admin/view/**/*.vue", { eager: true });
    },
    website: {},
    components: {
      headerUserSet: null,
    },
  })
  .use(router)
  .mount("#app");
